/**
 * Created by nondo on 2017/7/17.
 * 基础JS文件
 */
var header = new Vue({
    el: '#header',
    data: function () {
        return {
            activeIndex: '1',
            activeIndex2: '1'
        }
    },
    methods: {
        handleSelect: function (key, keyPath) {
            console.log(key, keyPath);
        }
    }
});

var sidebar = new Vue({
    el: '#sidebar',
    data: function () {
        return {visible: false}
    },
    methods: {
        handleSelect: function (key, keyPath) {
            console.log(key, keyPath);
            window.location.href = key;
        }
    }
});